package com.zx.idc.backend.gui.tlog;


import com.zx.idc.backend.gui.common.BaseApi;
import com.zx.idc.backend.gui.common.Result;
import com.zx.idc.ds.tlog.service.ITransactionLogService;
import com.zx.idc.ds.tlog.vo.TransactionLogVo;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 事务日志首页 前端控制器
 * </p>
 *
 * @author 陈冬
 * @since 2019-04-09
 */
@RestController
@RequestMapping("/api/transactionLog")
public class TransactionLogController extends BaseApi {

    @Autowired
    private ITransactionLogService iTransactionLogService;


    @GetMapping("/select-page")
    @RequiresPermissions("transaction-log:transaction-log")
    public Result<TransactionLogVo> getPageData() {
        return success(iTransactionLogService.getPageData());
    }


}

